package com.it.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.it.demo.entity.Device;
import com.it.demo.entity.Permission;
import com.it.demo.entity.User;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.stream.Collectors;


public interface UserService  extends IService<User> {
    User getByUsername(String username);

    List<Permission> findByUserRole(Integer id);
}
